package com.frcdi.qms.masterdata.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.TreeEntity;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 方法类型对象 md_method_type
 *
 * @author cell
 * @date 2023-10-16
 */
@ApiModel(value = "方法类型对象")
public class MethodType extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 方法类型id */
    private Long typeId;

    /** 方法类型名称 */
    @Excel(name = "方法类型名称")
    private String typeName;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId()
    {
        return typeId;
    }
    public void setTypeName(String typeName)
    {
        this.typeName = typeName;
    }

    public String getTypeName()
    {
        return typeName;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .toString();
    }
}
